
<ul> 
    <? if (!isset($no_gallery_links)){?>
        <? 
        if(isset($pictures)):
        foreach($pictures as $picture): ?>      

            <li>

                <a href="<?=base_url('gallery')?>"> <img src="<?=base_url()?>cms/pro-gallery/<?=$gallery['path']?>/<?=get_thumbnail(221, 117,$picture['filename'])?>" alt='' /> </a>

            </li>

            <? endforeach;
            endif;
             ?>
        <?}else{?>
        <? foreach($pictures as $picture): ?>      

            <li>

                <img src="<?=base_url()?>cms/pro-gallery/<?=$gallery['path']?>/<?=get_thumbnail(221, 117,$picture['filename'])?>" alt='' />

            </li>

            <? endforeach; ?>
        <?}?>
</ul>
